package com.ak.common.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Import;
import com.ak.common.configure.ServerProtectConfigure;

/**
 * 使用该注解标注Spring Boot启动类后，客户端请求将无法直接访问微服务，只能通过微服务网关访问
 * @author Vean
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(ServerProtectConfigure.class)
public @interface EnableServerProtect {
}
